package com.suning.sawp.po.promotion;

import java.io.Serializable;
import java.util.Date;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * 
 * 已验证活动列表实体<br>
 * 〈功能详细描述〉
 *
 * @author Wuxiao
 * @see [相关类/方法]（可选）
 * @since [产品/模块版本] （可选）
 */
@Document(collection = "ValidActivity")
public class ValidActivity implements Serializable {

    /**
     */
    private static final long serialVersionUID = 1L;

    /**
     * 文档Id
     */
    @Id
    private String id;
    /**
     * 店员工号
     */
    @Indexed
    private String oaAccountNo;
    /**
     * 活动编码
     */
    private String activityId;
    /**
     * 活动名称
     */
    private String activityName;
    /**
     * 城市Id
     */
    private String cityId;
    /**
     * 开始时间
     */
    private Date startTime;
    /**
     * 结束时间
     */
    @Indexed
    private Date endTime;
    /**
     * 活动秘钥
     */
    private String activitySecretKey;
    /**
     * 券来源 0 线上 1 线下
     */
    private Integer couponResource;
    /**
     * 门店编码
     */
    private String storeCode;
    /**
     * 分公司编码
     */
    private String branchCode;

    private String couponRuleCode;

    private String couponType;

    private String couponValue;

    public String getCouponType() {
        return couponType;
    }

    public void setCouponType(String couponType) {
        this.couponType = couponType;
    }

    public String getCouponValue() {
        return couponValue;
    }

    public void setCouponValue(String couponValue) {
        this.couponValue = couponValue;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getOaAccountNo() {
        return oaAccountNo;
    }

    public void setOaAccountNo(String oaAccountNo) {
        this.oaAccountNo = oaAccountNo;
    }

    public String getActivityId() {
        return activityId;
    }

    public void setActivityId(String activityId) {
        this.activityId = activityId;
    }

    public String getActivityName() {
        return activityName;
    }

    public void setActivityName(String activityName) {
        this.activityName = activityName;
    }

    public String getCityId() {
        return cityId;
    }

    public void setCityId(String cityId) {
        this.cityId = cityId;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public String getActivitySecretKey() {
        return activitySecretKey;
    }

    public void setActivitySecretKey(String activitySecretKey) {
        this.activitySecretKey = activitySecretKey;
    }

    public Integer getCouponResource() {
        return couponResource;
    }

    public void setCouponResource(Integer couponResource) {
        this.couponResource = couponResource;
    }

    public String getStoreCode() {
        return storeCode;
    }

    public void setStoreCode(String storeCode) {
        this.storeCode = storeCode;
    }

    public String getBranchCode() {
        return branchCode;
    }

    public void setBranchCode(String branchCode) {
        this.branchCode = branchCode;
    }

    public String getCouponRuleCode() {
        return couponRuleCode;
    }

    public void setCouponRuleCode(String couponRuleCode) {
        this.couponRuleCode = couponRuleCode;
    }

    @Override
    public String toString() {
        return "ValidActivity [id=" + id + ", oaAccountNo=" + oaAccountNo + ", activityId=" + activityId
                + ", activityName=" + activityName + ", cityId=" + cityId + ", startTime=" + startTime + ", endTime="
                + endTime + ", activitySecretKey=" + activitySecretKey + ", couponResource=" + couponResource
                + ", storeCode=" + storeCode + ", branchCode=" + branchCode + ", couponRuleCode=" + couponRuleCode
                + ", couponType=" + couponType + ", couponValue=" + couponValue + "]";
    }

    public interface Attributes {
        String OA_ACCOUNT_NO = "oaAccountNo";
        String CITY_ID = "cityId";
        String END_TIME = "endTime";
        String ACTIVITY_ID = "activityId";
        String ACTIVITY_NAME = "activityName";
        String COUPON_RESOURCE = "couponResource";
        String STORE_CODE = "storeCode";
        String START_TIME = "startTime";
        String ACTIVITY_SECRET_KEY = "activitySecretKey";
        String BRANCH_CODE = "branchCode";
        String COUPON_RULE_CODE = "couponRuleCode";
        String ID = "id";
        String COUPON_TYPE = "couponType";
        String COUPON_VALUE = "couponValue";
    }
}
